#pragma once

#include <string>
#include <Network/TcpServer.h>
#include <Game/ServerPacketProducer.h>
#include <Game/ServerPacketHandler.h>

#include "Room.h"

class CasualGameServer : public ServerPacketHandler
{
public:
	CasualGameServer(void);
	virtual ~CasualGameServer(void);

public:
	void Start();
	void Stop();

private:
	virtual void OnLogin(uint64_t userId);

private:
	TcpIoLoop ioLoop_;
	TcpServer server_;
	ServerPacketProducer packetProducer_;

	concurrent_vector<Room*> room_;
};

